#include <Pin_Model.h>

int relay_pin_no = 49;

Pin_Model relay_pin(relay_pin_no);

byte incomingByte;

void setup(){
  relay_pin.set_pin_mode(1);
  
  Serial.begin(9600);
}

void loop(){
  
  if (Serial.available() > 0) {
    // read the oldest byte in the serial buffer:
    incomingByte = Serial.read();
    // if it's a capital H (ASCII 72), turn on the LED:
    if (incomingByte == 'H') {
      relay_pin.set_pin_high();
      Serial.println("ON");
    } 
    // if it's an L (ASCII 76) turn off the LED:
    if (incomingByte == 'L') {
      relay_pin.set_pin_low();
      Serial.println("OFF");
    }
  }
}
